Skip to content

refactor(rust): connection registry hygiene (#1949) - #1950

Merged
ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/rust-connection-hygiene
Nov 15, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/rust-connection-hygiene

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

Hygiene pass on the Tauri Rust connection layer before PG/MySQL land:

  • Arc sessions — brief map lock, SQLite work outside the registry mutex
  • Thin commands — db_execute_query → registry.execute_sqlite_query (no rusqlite in IPC)
  • Error contract — stream failures are invoke Err only (no dual channel Error)
  • From<rusqlite::Error> — less map_err noise
  • Trim stubs — drop Redis/Mongo DriverKind + password fields until wired
  • CI — cargo clippy --all-targets -- -D warnings

Closes #1949
Parent: #1843 / #1846

Deferred

  • Query cancel / interrupt so disconnect does not wait on unbounded scans (follow-up)

Test plan

  • cargo clippy --locked --all-targets -- -D warnings
  • cargo test --locked (25 tests)

Release the sessions map lock before SQLite I/O via Arc sessions, route
query IPC through the session API, use invoke-Err-only for stream failures,
add From<rusqlite::Error>, trim premature DriverKind/password stubs, and
gate CI with clippy -D warnings.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 1410752 into epic/tauri-migration Nov 15, 2026
3 checks passed
@github-actions github-actions Bot added P1 High priority / Core capability tauri Tauri 2 / apps/tauri migration track rust Rust backend (src-tauri / crates) labels Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High priority / Core capability rust Rust backend (src-tauri / crates) tauri Tauri 2 / apps/tauri migration track

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant